import React from 'react'
const baseUrl = '/user/api/b'

// 知识库类目列表
export async function knowledgeClassifyPage(params) {
  return await React.$postJson(baseUrl + '/knowledgeClassify/list', params);
}
// 知识库类目详情
export async function knowledgeClassifyView(params) {
  return await React.$get(baseUrl + '/knowledgeClassify/one', params);
}
// 新增知识库类目
export async function knowledgeClassifyAdd(params) {
  return await React.$postJson(baseUrl + '/knowledgeClassify/add', params);
}
// 编辑知识库类目
export async function knowledgeClassifyEdit(params) {
  return await React.$postJson(baseUrl + '/knowledgeClassify/edit', params);
}
// 删除知识库类目
export async function knowledgeClassifyDel(params) {
  return await React.$post(baseUrl + '/knowledgeClassify/del', params);
}
// 类目tree
export async function knowledgeClassifySearch(params) {
  return await React.$get(baseUrl + '/knowledgeClassify/search', params);
}